package org.example.controller;

import org.example.entity.ACar;
import org.example.entity.BCar;

import java.util.List;

public class BCarsController {


    public static Boolean add(List<BCar> cars, BCar car){
        if(car==null) return true;
        int length=cars.size();
        cars.add(car);
        if(length==cars.size()-1) {
            return true;
        }
        return false;
    }
}
